<template>
  <div class="page">
    <h1>主控台</h1>

    <n-grid x-gap="12" y-gap="12" :cols="2">
      <n-grid-item>
        <n-card :segmented="{ content: true }" size="small" title="访问量" hoverable>
          <AreaRanking />
        </n-card>
      </n-grid-item>
      <n-grid-item>
        <n-card :segmented="{ content: true }" size="small" title="访问量" hoverable>
          <AreaRanking />
        </n-card>
      </n-grid-item>
      <n-grid-item>
        <n-card :segmented="{ content: true }" size="small" title="访问量" hoverable>
          <AreaRanking />
        </n-card>
      </n-grid-item>
      <n-grid-item>
        <n-card :segmented="{ content: true }" size="small" title="访问量" hoverable>
          <AreaRanking />
        </n-card>
      </n-grid-item>
    </n-grid>
  </div>
</template>

<script lang="ts" setup>
import AreaRanking from './components/AreaRanking.vue'
</script>

<style scoped>
.light-green {
  height: 108px;
  background-color: rgba(0, 128, 0, 0.12);
}
.green {
  height: 108px;
  background-color: rgba(0, 128, 0, 0.24);
}
</style>
